﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Tesorera.Master" AutoEventWireup="true" CodeBehind="BuscarManejoEconomico.aspx.cs" Inherits="Interfaces.BuscarManejoEconomico" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">


        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
            </asp:ScriptManagerProxy>
            <asp:Panel ID="Panel2" runat="server" GroupingText="Buscar Ingresos-Egresos" 
                style="text-align: left">
                &nbsp;<table class="style1">
                    <tr>
                        <td>
                            <asp:RadioButton ID="RadioButton4" runat="server" AutoPostBack="True" 
                                Checked="True" GroupName="Parametro" 
                                oncheckedchanged="RadioButton4_CheckedChanged" Text="Por gestion" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="RadioButton5" runat="server" AutoPostBack="True" 
                                GroupName="Parametro" oncheckedchanged="RadioButton5_CheckedChanged1" 
                                Text="Por fecha de creacion" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:Panel ID="Panel3" runat="server" GroupingText="Buscar">
                    <br />
                    Gestion:
                    <asp:DropDownList ID="DropDownList3" runat="server" 
                        DataSourceID="GestionDataSource" DataTextField="Gestion" 
                        DataValueField="Gestion" Height="16px" Width="110px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="GestionDataSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:JCIConnectionString %>" 
                        SelectCommand="SELECT [Gestion] FROM [Manejo]"></asp:SqlDataSource>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                </asp:Panel>
                <asp:Panel ID="Panel4" runat="server" GroupingText="Buscar" Visible="False">
                    &nbsp;&nbsp;
                    <table class="style1">
                        <tr>
                            <td>
                                Desde:
                                <asp:TextBox ID="TextBox1" runat="server" Enabled="False"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
                                    Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton1" 
                                    TargetControlID="TextBox1">
                                </ajaxToolkit:CalendarExtender>
                                &nbsp;<asp:ImageButton ID="ImageButton1" runat="server" 
                                    ImageUrl="~/Images/calendar.jpg" />
                            </td>
                            <td>
                                Hasta:
                                <asp:TextBox ID="TextBox2" runat="server" Enabled="False"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" 
                                    Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton2" 
                                    TargetControlID="TextBox2">
                                </ajaxToolkit:CalendarExtender>
                                &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" 
                                    ImageUrl="~/Images/calendar.jpg" />
                            </td>
                        </tr>
                    </table>
                    <br />
                </asp:Panel>
                <br />
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" CssClass=JCIstyle Text="Buscar" />
                <br />
                <asp:Panel ID="Panel5" runat="server">
                    <asp:DataList ID="DataList1" runat="server" 
                        onitemcommand="DataList1_ItemCommand" 
                        onselectedindexchanged="DataList1_SelectedIndexChanged">
                        <HeaderTemplate>
                            <tr style="color:#000000">
                                <td style='border:2px solid #123456;' bgcolor="#3a67b1" >
                                 
                                    <asp:Label ID="Label1" runat="server" Text="Gestion"></asp:Label>
                                </td>
                                <td style='border:2px solid #123456;' bgcolor="#3a67b1" >
                                     <asp:Label ID="Label2" runat="server" Text="Creacion"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr style="color:#000000">
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:Label ID="Gestion" runat="server" Text='<%# Eval("Gestion") %>'></asp:Label>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:Label ID="Creacion" runat="server" Text='<%# Eval("FechaCreacion") %>'></asp:Label>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:LinkButton ID="Ver" runat="server" CommandName="Ver">Ver Ingresos-Egresos</asp:LinkButton>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:LinkButton ID="Editar" runat="server" CommandName="Editar" >Modificar Ingresos-Egresos</asp:LinkButton>
                                </td>
                                <td style='border:2px solid #123456;'>
                                 
                                    <asp:LinkButton ID="Grafica" runat="server" CommandName="Grafica">Ver grafica anual</asp:LinkButton>
                                </td>
                                
                            </tr>
                            &nbsp;&nbsp;&nbsp;
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:Label ID="LabelError" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                    <br />
                </asp:Panel>
                <br />
                <br />
                <br />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
